package com.almm.s_utils.controller;

import com.alibaba.fastjson.JSONObject;
import com.almm.s_utils.Util.ComUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

import java.io.File;
import java.io.FileOutputStream;
import java.util.List;
import java.util.zip.ZipEntry;
import java.util.zip.ZipOutputStream;

@RestController
@RequestMapping("/demo")
public class DemoController {

    @Autowired
    ComUtil comUtil;

    @GetMapping("/demo_01")
    public JSONObject demo_01(){
        String s = ComUtil.generateSequence();
        JSONObject res = new JSONObject();
        res.put("code", 0);
        res.put("msg", "success");
        res.put("data", s);
        return res;
    }

}
